<?php

$api = app('Dingo\Api\Routing\Router');

$api->group([
    'namespace'  => 'App\Http\Controllers\Auth',
    'prefix'     => 'auth',
    'middleware' => ['cors']
], function ($api) {
    $api->post('authorizations', 'AuthController@login');
    $api->get('profile', 'AuthController@profile');
    $api->delete('logout', 'AuthController@logout');
});